<!DOCTYPE html>

<html>
<head>
	<title>Nerv Widgets 3</title>
	
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta> 
	
	<link rel="stylesheet" href="../../themes/nw3/form.css" type="text/css" media="all"></link>
	
	<script src="../../nw3.js" type="text/javascript"></script>
	<script src="../../plugins/form/form.js" type="text/javascript"></script>
	<script src="../../langs/it.js" type="text/javascript"></script>
</head>

<body>

<script>
// stampa titolo pagina
window.document.title = NW3.toString();
</script>


<br />
Nerv Form Plugin: Checkbox | Checkboxlist
<br />
<br />

<script>
oCheckbox = new NW3.form.Checkbox({
	name : 'fieldname',
	label : {
		text : 'Checkbox'
	},
	value : 'Testo del valore'
});
oCheckbox.print();
</script>
<br />
<br />

<script>
oCheckbox = new NW3.form.Checkbox({
	name : 'fieldname',
	label : {
		text : 'Disabled'
	},
	value : 'Disabled',
	status : 'disabled'
});
oCheckbox.print();

</script>
<br />
<br />
<br />
<br />

<script>
var oCheckboxList = new NW3.form.checkboxlist.CheckboxList({
	pressed : [2,3]
});

oCheckboxList.newCheckbox({
	name : 'fieldname1',
	label : {
		text : 'Checkbox1'
	},
	value : 'Testo del valore1'
});

oCheckboxList.newCheckbox({
	name : 'fieldname2',
	label : {
		text : 'Checkbox2'
	},
	value : 'Testo del valore2'
});

oCheckboxList.newCheckbox({
	name : 'fieldname3',
	label : {
		text : 'Checkbox3'
	},
	value : 'Testo del valore3'
});


oCheckboxList.print();
</script>
<br />
<br />
<br />
<br />

<script>
var oCheckboxList = new NW3.form.checkboxlist.CheckboxList({
	status : 'disabled'
});

oCheckboxList.newCheckbox({
	name : 'fieldname1',
	label : {
		text : 'Checkbox1'
	},
	value : 'Testo del valore1'
});

oCheckboxList.newCheckbox({
	name : 'fieldname2',
	label : {
		text : 'Checkbox2'
	},
	value : 'Testo del valore2'
});

oCheckboxList.print();
</script>

<br />
<br />
<br />
<br />

Limit 2 checkboxes:
<script>
var oCheckboxList = new NW3.form.checkboxlist.CheckboxList({
	pressed : [2,3],
	limit	: 2
});

oCheckboxList.newCheckbox({
	name : 'fieldname1',
	label : {
		text : 'Checkbox1'
	},
	value : 'Testo del valore1'
});

oCheckboxList.newCheckbox({
	name : 'fieldname2',
	label : {
		text : 'Checkbox2'
	},
	value : 'Testo del valore2'
});

oCheckboxList.newCheckbox({
	name : 'fieldname3',
	label : {
		text : 'Checkbox3'
	},
	value : 'Testo del valore3'
});


oCheckboxList.print();
</script>
<br />
<br />
<br />
<br />
<br>
</body>
</html>
